package com.zrgk.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工对象
 * @author hzy
 *
 */
public class EmpBean implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;//员工id
	private String number;//员工编号
	private String name;//员工姓名
	private String username;//员工账号
	private String password;//员工密码
	private int sex;//员工性别   1男 2女
	private String phone;//员工电话
	private int state;//账号状态 1可用 2不可用
	private DeptBean dept;//员工所属部门
	private String remark;//员工备注
	private Date createDate;//员工创建时间
	private RoleBean role;//员工角色
	private Date lastDate;//员工最后一次操作时间
	private EmpBean user;//操作者
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public DeptBean getDept() {
		return dept;
	}
	public void setDept(DeptBean dept) {
		this.dept = dept;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public RoleBean getRole() {
		return role;
	}
	public void setRole(RoleBean role) {
		this.role = role;
	}
	public Date getLastDate() {
		return lastDate;
	}
	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}
	
	public EmpBean getUser() {
		return user;
	}
	public void setUser(EmpBean user) {
		this.user = user;
	}
	
	public String toString() {
		return "EmpBean [id=" + id + ", number=" + number + ", name=" + name
				+ ", username=" + username + ", password=" + password
				+ ", sex=" + sex + ", phone=" + phone + ", state=" + state
				+ ", dept=" + dept + ", remark=" + remark + ", createDate="
				+ createDate + ", role=" + role + ", lastDate=" + lastDate
				+ ", user=" + user + "]";
	}
	
	
}
